package com.zczc.web.controller;

import com.yishuifengxiao.common.tool.response.Response;
import com.yishuifengxiao.common.tool.response.Response.Const;
import com.zczc.entity.MessageType;
import com.zczc.service.MessageTypeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author:Mark
 * @Description:
 * @Date: Created on 14:19 2018-12-13
 * @Modify by:
 */
@RestController
@RequestMapping("/zczc/messageType")
@Api(tags = {"消息类型接口"})
public class MessageTypeController {

  @Autowired
  private MessageTypeService messageTypeService;

  @GetMapping("/selectAllMessageType")
  @ApiOperation(value = "获取所有消息类型")
  public Response<List<MessageType>> selectAllMessageType(){
    List<MessageType> data = messageTypeService.selectAllMessageType();
    return new Response<List<MessageType>>(Const.CODE_OK,Const.MSG_OK,data);
  }

}
